﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Frame.master" AutoEventWireup="true" CodeFile="monthReport.aspx.cs" Inherits="monthReport" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleHolder" Runat="Server">
     Báo cáo
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHolder" Runat="Server">
    <script type="text/javascript">
    $(document).ready(function () {

        //Tu ngay - den ngay
        initJQueryWidgets();
        
    });
    function initJQueryWidgets() {
        $("[ID$=txtFrom]").datepicker({
            changeMonth: true,
            changeYear: true
        });
        $("[ID$=txtTo]").datepicker({
            changeMonth: true,
            changeYear: true
        });
        $("[ID$=txtFrom]").attr('readOnly', 'true');
        $("[ID$=txtTo]").attr('readOnly', 'true');

        $('[ID$=txtFromHour]').timepicker({
           
        });
        $('[ID$=txtToHour]').timepicker({});
    }
 </script>
 
<div align="center">
    <asp:Label ID="lblMsg" runat="server" Text="" ForeColor="#FF3300"></asp:Label></div>
<table width="700" border="0" cellpadding="3" cellspacing="1" class="margin_b15 margin_l150">
        <tr>
            <td align="left" valign="top" width="60">
                Báo cáo</td>
            <td align="left" valign="top">
                <asp:DropDownList ID="ddlReport" runat="server" AutoPostBack="True" 
                    TabIndex="1" onselectedindexchanged="ddlReport_SelectedIndexChanged">                    
                    <asp:ListItem Value="01">Danh sách theo dõi tình trạng thanh toán trả trước xe 2 bánh</asp:ListItem>
                    <asp:ListItem Value="02">Danh sách theo dõi tình trạng thanh toán trả trước xe 2 bánh theo hầm</asp:ListItem>
                    <asp:ListItem Value="VangLaiGroup">Thống kê doanh thu xe vãng lai</asp:ListItem>
                    <asp:ListItem Value="VangLai">Thống kê doanh thu xe vãng lai theo hầm</asp:ListItem>
                    <asp:ListItem Value="TKSoLuongXeGroupByFloor">Thống kê số lượng xe 2 bánh</asp:ListItem>
                    <asp:ListItem Value="TKTongDoanhThuXe">Báo cáo doanh thu xe 2 bánh</asp:ListItem>
                    <asp:ListItem Value="XeChuaThanhToan">Danh sách xe chưa thanh toán</asp:ListItem>
                    <asp:ListItem Value="QLBaoVeTrongThang">Báo cáo quản lý thời gian làm việc của bảo vệ theo ngày</asp:ListItem>
                    <asp:ListItem Value="QLBaoVeTrongNam">Báo cáo quản lý thời gian làm việc của bảo vệ theo tháng</asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="errorCode0" runat="server" ControlToValidate="ddlReport"
                    CssClass="errorMsg" ForeColor="#FF0000" SetFocusOnError="True" 
                    Display="Dynamic">Chọn 
                loại báo cáo</asp:RequiredFieldValidator>
            </td>
        </tr>
       <tr id="trHam" runat="server" visible="false">
            <td align="left" valign="top">
                Hầm</td>
            <td align="left" valign="top">
                <asp:DropDownList ID="ddlFloor" runat="server" Width="277px" TabIndex="2">
                    <asp:ListItem Value=""></asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ddlFloor"
                    CssClass="errorMsg" ForeColor="#FF0000" SetFocusOnError="True" 
                    Display="Dynamic">Chọn hầm</asp:RequiredFieldValidator>
            </td>
        </tr>
        
        <tr id="trNhanVien" runat="server" visible="false">
            <td align="left" valign="top">
                Nhân viên</td>
            <td align="left" valign="top">
                <asp:DropDownList ID="ddlEmp" runat="server" Width="423px" TabIndex="2">
                    <asp:ListItem Value=""></asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlEmp"
                    CssClass="errorMsg" ForeColor="#FF0000" SetFocusOnError="True" 
                    Display="Dynamic">Chọn nhân viên</asp:RequiredFieldValidator>
            </td>
        </tr>        
         <tr id="trDate" runat="server">
            <td align="left" valign="bottom" style="height: 27px">
              
                Từ</td>
            <td align="left" valign="bottom" style="height: 27px">
                    
                          <table cellpadding="0" cellspacing="0" border="0" width="500">
                        <tr>
                            <td align="left" width="50"><i>Giờ</i></td>
                            <td align="left" width="90"><i>Ngày</i></td>
                            <td align="left" width="50">&nbsp;</td>
                            <td align="left" width="50"><i>Giờ</i></td>
                            <td align="left"><i>Ngày</i></td>
                        </tr>
                        <tr>
                            <td align="left">
                            <asp:TextBox ID="txtFromHour" runat="server" MaxLength="10" Width="40"></asp:TextBox>
                            </td>
                            <td align="left">
                    
                            <asp:TextBox ID="txtFrom" runat="server" CssClass="width_80" MaxLength="10"></asp:TextBox>
                            </td>
                            <td align="center">
                                đến</td>
                            <td align="left">
                            <asp:TextBox ID="txtToHour" runat="server" MaxLength="10" Width="40"></asp:TextBox>
                            </td>
                            <td align="left">
                            <asp:TextBox ID="txtTo" runat="server" CssClass="width_80" MaxLength="10"></asp:TextBox>
                    
                            </td>
                        </tr>
                    </table>
                    
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                &nbsp;
            </td>
            <td align="left" valign="bottom" style="padding-top:10px;">
                    
                <asp:ImageButton ID="btnView" runat="server" ImageUrl="~/images/xem.gif" 
                    onclick="btnView_Click" />
                    
            </td>
        </tr>
       
    </table>

    <table width="900" border="0" cellpadding="0" cellspacing="0" class="margin_b5 margin_l20">
        <tr>
            <td class="titleInfo">
                Xem trước báo cáo
            </td>
        </tr>
    </table>
   
   <table width="940" border="0" cellpadding="0" cellspacing="0" class="margin_b5 margin_l20">
        <tr>
            <td align="left">
            <asp:Panel ID="pnlReportViewer" runat="server">
           <%-- <rsweb:ReportViewer ID="rpViewer" runat="server" Height="440px" 
            Width="940px" ShowRefreshButton="False">
        </rsweb:ReportViewer>--%>
            </asp:Panel>
            </td>
        </tr>
    </table>

</asp:Content>

